﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication.BLL
{
    public class List_BLL
    {
        public static void showList()
        {
            myList<int, int> o1 = new myList<int, int>();
            myList<int?, int?> o2 = new myList<int?, int?>();
            myList<string, string> o3 = new myList<string, string>();
            myList<Point, Point> op = new myList<Point, Point>();

            o1.mylist = null;

            bool IsSame1 = o1.Compare(1, 2);
            bool IsSame2 = o2.Compare(1, null);
            bool IsSame3 = o3.Compare("1", null);       //      string是引用类型，包含null值。
            bool IsSame4 = op.Compare(new Point(1, 1), new Point(2, 2));

            Console.WriteLine("o1.Compare: {0}", IsSame1);
            Console.WriteLine("o2.Compare: {0}", IsSame2);
            Console.WriteLine("o3.Compare: {0}", IsSame3);
            Console.WriteLine("op.Compare: {0}", IsSame4);
            Console.ReadKey();
        }

    }
}
